package cn.lhz.dto;


import cn.lhz.util.annotation.FieldAnnotation;
import cn.lhz.util.annotation.RowKeyAnnotation;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author 年阔正
 * @version 1.0.0
 */
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class ChinaCity extends Model<ChinaCity> {
  @TableId(type = IdType.NONE)
  @RowKeyAnnotation
  @FieldAnnotation(alias = "城市")
  private String city;
  @FieldAnnotation(alias = "CO_AQI")
  private long coApiValue;
  @FieldAnnotation(alias = "OZONE_AQI")
  private long ozoneAqiValue;
  @FieldAnnotation(alias = "NO2_AQI")
  private long no2AqiValue;
  @FieldAnnotation(alias = "PM2_5_AQI")
  private long pm25AqiValue;
  @Override
  public String toString() {
    return this.city + "\t"  + this.coApiValue + "\t" + this.ozoneAqiValue + "\t" + this.no2AqiValue + "\t" + this.pm25AqiValue;
  }
}
